package com.itzdm.client.fallback;

import com.itzdm.client.client.MessageClient;
import com.itzdm.client.client.UserClient;
import com.itzdm.client.domain.UserSearchDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;

import java.util.List;

/**
 * @作者：张德明
 * @时间：2025/4/6 12:53
 */
@Slf4j
public class MessageFallback implements FallbackFactory<MessageClient> {
    @Override
    public MessageClient create(Throwable cause) {
        return new MessageClient() {

            @Override
            public void deleteMessage(Long userId, Long friendId) {
                log.info("删除双方的聊天记录失败 userId: {}, friendId: {}", userId, friendId);
            }
        };
    }
}
